package com.jhgsys.internal.hazard.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jhgsys.internal.common.entity.QueryRequest;
import com.jhgsys.internal.hazard.dto.HazardExamineObjectDto;
import com.jhgsys.internal.hazard.entity.HazardExamineObject;

import java.util.List;

/**
 *  Service接口
 *
 * @author admin
 * @date 2024-08-21 18:00:00
 */
public interface IHazardExamineObjectService extends IService<HazardExamineObject> {
    /**
     * 查询（分页）
     * @author admin
     * @date 2024-08-21 18:00:00
     * @param request QueryRequest
     * @param hazardExamineObject hazardExamineObject
     * @return IPage<HazardExamineObject>
     */
    IPage<HazardExamineObject> findHazardExamineObjectPage(QueryRequest request, HazardExamineObject hazardExamineObject);

    /**
     * 查询（所有）
     * @author admin
     * @date 2024-08-21 18:00:00
     * @param hazardExamineObject hazardExamineObject
     * @return List<HazardExamineObject>
     */
    List<HazardExamineObject> findHazardExamineObjectList(HazardExamineObject hazardExamineObject);

    /**
    * 根据ID查询
    * @author admin
    * @date 2024-08-21 18:00:00
    * @param id
    * @return HazardExamineObject
    */
    HazardExamineObject findHazardExamineObjectById(String id);

    /**
     * 新增
     * @author admin
     * @date 2024-08-21 18:00:00
     * @param hazardExamineObject hazardExamineObject
     */
    void createHazardExamineObject(HazardExamineObject hazardExamineObject);

    /**
     * 修改
     * @author admin
     * @date 2024-08-21 18:00:00
     * @param hazardExamineObject hazardExamineObject
     */
    void updateHazardExamineObject(HazardExamineObject hazardExamineObject);

    /**
     * 逻辑删除
     * @author admin
     * @date 2024-08-21 18:00:00
     * @param hazardExamineObject hazardExamineObject
     * @param hazardExamineObjectIds hazardExamineObjectIds
     */
    void deleteHazardExamineObject(HazardExamineObject hazardExamineObject,String hazardExamineObjectIds);

    /**
    * 物理删除
    * @author admin
    * @date 2024-08-21 18:00:00
    * @param hazardExamineObjectIds hazardExamineObjectIds
    */
    void physicallyDeleteHazardExamineObject(String hazardExamineObjectIds);

    /**
     * 根据安全检查examine_id查询
     * @author admin
     * @param examineIds
     * @return List<HazardExamineRecordDto>
     */
    List<HazardExamineObjectDto> findByExamineIds(List<String> examineIds);

    /**
     * 根据安全检查examine_id删除
     * @author admin
     * @param examineIds
     * @return List<HazardExamineRecordDto>
     */
    void deleteByExamineIds(String examineIds);
}
